#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cstring>
using namespace std;

#include "lexical.h"
#include "parser.h"

int main ( int argc, char *argv[] )
{
  if ( argc != 3 ) // argc should be 2 for correct execution
  {
	  cout<<"usage: "<< argv[0] <<" <filename in> <filename out>\n";
  }
  else 
  {
  	lexicalAnalysis(argv); //call lexical analysis
  	program(0); // call parser and translator
  }
  return 0;
}